/*
 *@本JS功能：班级管理
 *@本js作者：杨锡君
 *@编写时间：2017年10月31日
 */
$(function() {
    var Alert1 = new Alert();
    var confirm1 = new Confirm();
    var loading1 = new Loading();
    loading1.init();
    function report(omg,a,b,c,d,e,f) {
        var str = '<div  class="downloadBtn">下载教学统计</div>' +
            '      <div class="title">教学统计</div>' +
            '        <div class="infoBox">' +
            '            <div  id="energy"></div>' +
            '        <div>' +
            '            <div class="energyBox">' +
            '                <div class="fl">' +
            '                    <h4>'+ a +'</h4>' +
            '                    <p>教学活跃度</p>' +
            '                </div>' +
            '                <div class="fl">' +
            '                    <h4>'+ b +'</h4>' +
            '                    <p>教学周期</p>' +
            '                </div>' +
            '                <div class="fl">' +
            '                    <h4>'+ c +'</h4>' +
            '                    <p>教学成绩</p>' +
            '                </div>' +
            '                <div class="fl">' +
            '                    <h4>' + d+ '</h4>' +
            '                    <p>教学成果</p>' +
            '                </div>' +
            '                <span></span><span></span>' +
            '            </div>' +
            '        <b id="showDetail">查看详情</b></div>' +
            '        </div>' +
            '<div class="infoBox newBox">' +
            '<span class="infoSubBox newBoxs">' +
            '<div class="fl leftBox">' +
            '<div>' +
            '<h3>'+ omg.totalMap.stucount +'</h3>' +
            '<p>学习人数</p>' +
            '<span class="leftLines"></span>' +
            '</div>' +
            '<div>' +
            '<h3>'+  Number((omg.totalMap.avgExpreTime/3600).toFixed(2)) +'h</h3>' +
            '<p>实验平均时长</p>' +
            '<span class="leftLines"></span>' +
            '</div>' +
            '<div>' +
            '<h3>'+ omg.totalMap.answercount +'</h3>' +
            '<p>问题交流回复数</p>' +
            '<span class="leftLines"></span>' +
            '</div>' +
            '<div>' +
            '<h3>'+ parseInt(omg.totalMap.checkHomeRate*100) +'%</h3>' +
            '<p>作业批改率</p>' +
            '<span class="leftLines"></span>' +
            '</div>' +
            '<div>' +
            '<h3>'+ parseInt(omg.totalMap.checkTestRate*100) +'%</h3>' +
            '<p>实验报告批改率</p>' +
            '</div>' +
            '<div>' +
            '<h3>'+ (omg.totalMap.registerTime==null?'--':timeObject.changedateYear(omg.totalMap.registerTime)) +'</h3>' +
            '<p>注册时间</p>' +
            '<span class="leftLines"></span>' +
            '</div>' +
            '<div>';
        if(omg.totalMap.startTime!=null && omg.totalMap.startTime!="null" && omg.totalMap.startTime!=''){

            str+= '<h3 style="height: auto;font-size: 16px">'+ omg.totalMap.startTime+"~~"+omg.totalMap.endTime +'</h3>';
        }else{
            str+= '<h3 >--</h3>';
        }
        str+='<p>排课周期</p>' +
            '<span class="leftLines"></span>' +
            '</div>' +
            '<div>' +
            '<h3>'+ (omg.totalMap.relationCount) +'</h3>' +
            '<p>排课节数</p>' +
            '<span class="leftLines"></span>' +
            '</div>' +
            '<div>' +
            '<h3>'+ omg.totalMap.teachCourseCount +'</h3>' +
            '<p>教授课程数量</p>' +
            '<span class="leftLines"></span>' +
            '</div>' +
            '<div>' +
            '<h3>'+ omg.totalMap.stayTime +'h</h3>' +
            '<p>教授课程时长</p>' +
            '</div>' +
            '<span class="leftLine1"></span>' +
            '<span class="leftLine"></span>' +
            '<span class="title1"><i>●</i>教学活跃度</span>' +
            '<span class="title2"><i>●</i>教学周期</span>' +
            '</div>' +
            '<div class="fl rightBox">' +
            '<div>' +
            '<div class="fl"><h4>'+ omg.totalMap.avgPerexam +'</h4><p>平时平均成绩(分)</p></div>' +
            '<div class="fl"><h4>'+ omg.totalMap.avgExam +'</h4><p>考试平均成绩(分)</p></div>' +
            '   <div class="fl"><h4>'+ omg.totalMap.avgSource +'</h4><p>总成绩平均成绩(分)</p></div>' +
            '</div>' +
            '<div>' +
            '<div class="fl"><h4 data-text="'+  parseInt( omg.totalMap.passTotalRate*100)  +'" class="circlem"></h4><p>考试及格率</p></div>' +
            '   <div class="fl"><h4 data-text="'+  parseInt( omg.totalMap.homeRate*100)  +'" class="circlem"></h4><p>作业提交率</p></div>' +
            '   <div class="fl"><h4 data-text="'+  parseInt( omg.totalMap.testRate*100)  +'" class="circlem"></h4><p>实验报告提交率</p></div>' +
            '</div>' +
            '<span class="leftLine2"></span>' +
            '<span class="leftLine3"></span>' +
            '<span class="title3"><i>●</i>教学成绩</span>' +
            '<span class="title4"><i>●</i>教学成果</span>' +
            '</div>' +
            '</span>' +
            '</div>'+
            '        <div class="mainBox">';
        var str1 = '';
        if(omg.finalList.length != 0){
            var i = 0;
            $.map(omg.finalList, function(opt) {
                if(i % 2 ==0){
                    str1 +=  '            <div class="oneBox">' +
                        '                <div class="title">'+ opt.courseName +'</div>' +
                        '                <div class="box">' +
                        '                    <div class="staticBox">' +
                        '                        <div class="fl">' +
                        '                            <h4>'+ opt.stucount +'人</h4>' +
                        '                            <p>学习人数</p>' +
                        '                        </div>' +
                        '                        <div class="fl">' +
                        '                            <h4>'+  opt.problemcount +'</h4>' +
                        '                            <p>问题交流提问数</p>' +
                        '                        </div>' +
                        '                        <div class="fl">' +
                        '                            <h4>'+ opt.answercount +'</h4>' +
                        '                            <p>问题交流回答数</p>' +
                        '                        </div>' +
                        '                        <div class="fl">' +
                        '                            <h4>'+ Number((opt.sumLong/3600).toFixed(2)) +'h</h4>' +
                        '                            <p>实验总时长</p>' +
                        '                        </div>' +
                        '                        <div class="fl">' +
                        '                            <h4>'+ Number((opt.avgLong/3600).toFixed(2)) +'h</h4>' +
                        '                            <p>实验平均时长</p>' +
                        '                        </div>' +
                        '                        <span></span><span></span><span></span><span></span>' +
                        '                    </div>' +
                        '                    <div class="staticSub">' +
                        '                        <div class="fl">' +
                        '                            <div>' +
                        '                                <div class="fl"><h4>'+ opt.avgPerexam +'</h4><p>平时平均成绩(分)</p></div>' +
                        '                                <div class="fl"><h4>'+ opt.avgExam +'</h4><p>考试平均成绩(分)</p></div>' +
                        '                                <div class="fl"><h4>'+ opt.avgSource +'</h4><p>总成绩平均成绩(分)</p></div>' +
                        '                            </div>' +
                        '                        </div>' +
                        '                        <div class="fl">' +
                        '                            <div>' +
                        '                                <div class="fl"><h4 data-text="'+ parseInt(opt.passRate*100) +'" class="circle"></h4><p>考试及格率</p></div>' +
                        '                                <div class="fl"><h4 data-text="'+ parseInt(opt.taskRate*100) +'" class="circle"></h4><p>作业提交率</p></div>' +
                        '                                <div class="fl"><h4 data-text="'+ parseInt(opt.expreRate*100) +'" class="circle"></h4><p>实验报告提交率</p></div>' +
                        '                            </div>' +
                        '                        </div>' +
                        '                        <span></span>' +
                        '                    </div>' +
                        '                </div>';
                    if(omg.courseWordMark == 0){
                        if(opt.saveMark == 1){
                            str1+= '<div data-courseid='+ opt.courseId +' class="teaBtn">教学材料<img src="pc/images/ico_courseStUp.png" ><div class="bubble" style="display: none;"> <span></span> <em></em><p num="1" class="num1 have">学习课件</p><p num="4" class="num4 have">课后作业 </p><p num="5" class="num5 have">学习视频</p><p num="6" class="num6 have">课程材料</p><p num="7" class="num7 have">Word资源</p></div></div>';
                        }else{
                            str1+= '<div data-courseid='+ opt.courseId +' class="teaBtn">教学材料<img src="pc/images/ico_courseStUp.png" ><div class="bubble" style="display: none;"> <span></span> <em></em><p num="1" class="num1 have">学习课件</p><p num="4" class="num4 have">课后作业 </p><p num="5" class="num5 have">学习视频</p><p num="6" class="num6 have">课程材料</p></div></div>';
                        }
                    }else{
                        str1+= '<div data-courseid='+ opt.courseId +' class="teaBtn">教学材料</div>';
                    }

                    str1+=  '                <div type="2" data-info='+ JSON.stringify(opt) +' data-classid='+ opt.classId +' data-classname='+  opt.className +' data-courseid='+ opt.courseId +' class="detailBtn">班级详情</div>' +
                        '            </div>';
                }else{
                    str1 +=  '            <div class="oneBox twoBox">' +
                        '                <div class="title">'+ opt.courseName +'</div>' +
                        '                <div class="box">' +
                        '                    <div class="staticBox">' +
                        '                        <div class="fl">' +
                        '                            <h4>'+ opt.stucount +'人</h4>' +
                        '                            <p>学习人数</p>' +
                        '                        </div>' +
                        '                        <div class="fl">' +
                        '                            <h4>'+  opt.problemcount +'</h4>' +
                        '                            <p>问题交流提问数</p>' +
                        '                        </div>' +
                        '                        <div class="fl">' +
                        '                            <h4>'+ opt.answercount +'</h4>' +
                        '                            <p>问题交流回答数</p>' +
                        '                        </div>' +
                        '                        <div class="fl">' +
                        '                            <h4>'+ Number((opt.sumLong/3600).toFixed(2)) +'h</h4>' +
                        '                            <p>实验总时长</p>' +
                        '                        </div>' +
                        '                        <div class="fl">' +
                        '                            <h4>'+ Number((opt.avgLong/3600).toFixed(2)) +'h</h4>' +
                        '                            <p>实验平均时长</p>' +
                        '                        </div>' +
                        '                        <span></span><span></span><span></span><span></span>' +
                        '                    </div>' +
                        '                    <div class="staticSub">' +
                        '                        <div class="fl">' +
                        '                            <div>' +
                        '                                <div class="fl"><h4>'+ opt.avgPerexam +'</h4><p>平时平均成绩(分)</p></div>' +
                        '                                <div class="fl"><h4>'+ opt.avgExam +'</h4><p>考试平均成绩(分)</p></div>' +
                        '                                <div class="fl"><h4>'+ opt.avgSource +'</h4><p>总成绩平均成绩(分)</p></div>' +
                        '                            </div>' +
                        '                        </div>' +
                        '                        <div class="fl">' +
                        '                            <div>' +
                        '                                <div class="fl"><h4 data-text="'+ parseInt(opt.passRate*100) +'" class="circles"></h4><p>考试及格率</p></div>' +
                        '                                <div class="fl"><h4 data-text="'+ parseInt(opt.taskRate*100) +'" class="circles"></h4><p>作业提交率</p></div>' +
                        '                                <div class="fl"><h4 data-text="'+ parseInt(opt.expreRate*100) +'" class="circles"></h4><p>实验报告提交率</p></div>' +
                        '                            </div>' +
                        '                        </div>' +
                        '                        <span></span>' +
                        '                    </div>' +
                        '                </div>';
                    if(omg.courseWordMark == 0){
                        if(opt.saveMark == 1){
                            str1+= '<div data-courseid='+ opt.courseId +' class="teaBtn">教学材料<img src="pc/images/ico_courseStUp.png" ><div class="bubble" style="display: none;"> <span></span> <em></em><p num="1" class="num1 have">学习课件</p><p num="4" class="num4 have">课后作业 </p><p num="5" class="num5 have">学习视频</p><p num="6" class="num6 have">课程材料</p><p num="7" class="num7 have">Word资源</p></div></div>';
                        }else{
                            str1+= '<div data-courseid='+ opt.courseId +' class="teaBtn">教学材料<img src="pc/images/ico_courseStUp.png" ><div class="bubble" style="display: none;"> <span></span> <em></em><p num="1" class="num1 have">学习课件</p><p num="4" class="num4 have">课后作业 </p><p num="5" class="num5 have">学习视频</p><p num="6" class="num6 have">课程材料</p></div></div>';
                        }
                    }else{
                        str1+= '<div data-courseid='+ opt.courseId +' class="teaBtn">教学材料</div>';
                    }

                    str1+=  '                <div type="2" data-info='+ JSON.stringify(opt) +' data-classid='+ opt.classId +' data-classname='+  opt.className +' data-courseid='+ opt.courseId +' class="detailBtn">班级详情</div>' +
                        '            </div>';
                }
                i++;
            });
        }
        var str2 = '</div>';
        return str + str1 + str2;
    }
    var selectModel = "<div style='height: 60px;' class=\"funBox\">"
        +"<div class=\"fl inputRight\">"
        +"<select class=\"publicSelect\" id=\"courseType\">"
        +"<option value=\"3\">请选择课程类型</option>"
        +"<option value=\"0\">未结课</option>"
        +"<option value=\"1\">已结课</option>"
        +"</select>"
        +"</div>"
        +"<div class=\"fl publicBtn searchBtn\">搜索</div>"
        +"</div>";
    function tableModel(opt,type) {
        var str='';
        if(type == 1){
            str= '            <div class="oneBox">' +
                '                <div class="title">'+ opt.courseName +'</div>' +
                '                <div class="box">' +
                '                    <div class="staticBox">' +
                '                        <div class="fl">' +
                '                            <h4>'+ opt.stucount +'人</h4>' +
                '                            <p>学习人数</p>' +
                '                        </div>' +
                '                        <div class="fl">' +
                '                            <h4>'+  opt.problemcount +'</h4>' +
                '                            <p>问题交流提问数</p>' +
                '                        </div>' +
                '                        <div class="fl">' +
                '                            <h4>'+ opt.answercount +'</h4>' +
                '                            <p>问题交流回答数</p>' +
                '                        </div>' +
                '                        <div class="fl">' +
                '                            <h4>'+ Number((opt.sumLong/3600).toFixed(2)) +'h</h4>' +
                '                            <p>实验总时长</p>' +
                '                        </div>' +
                '                        <div class="fl">' +
                '                            <h4>'+ Number((opt.avgLong/3600).toFixed(2)) +'h</h4>' +
                '                            <p>实验平均时长</p>' +
                '                        </div>' +
                '                        <span></span><span></span><span></span><span></span>' +
                '                    </div>' +
                '                    <div class="staticSub">' +
                '                        <div class="fl">' +
                '                            <div>' +
                '                                <div class="fl"><h4>'+ opt.avgPerexam +'</h4><p>平时平均成绩(分)</p></div>' +
                '                                <div class="fl"><h4>'+ opt.avgExam +'</h4><p>考试平均成绩(分)</p></div>' +
                '                                <div class="fl"><h4>'+ opt.avgSource +'</h4><p>总成绩平均成绩(分)</p></div>' +
                '                            </div>' +
                '                        </div>' +
                '                        <div class="fl">' +
                '                            <div>' +
                '                                <div class="fl"><h4 data-text="'+ parseInt(opt.passRate*100) +'" class="circle1"></h4><p>考试及格率</p></div>' +
                '                                <div class="fl"><h4 data-text="'+ parseInt(opt.taskRate*100) +'" class="circle1"></h4><p>作业提交率</p></div>' +
                '                                <div class="fl"><h4 data-text="'+ parseInt(opt.expreRate*100) +'" class="circle1"></h4><p>实验报告提交率</p></div>' +
                '                            </div>' +
                '                        </div>' +
                '                        <span></span>' +
                '                    </div>' +
                '                </div>' +
                '                <div data-classid='+ opt.classId +' data-classname='+  opt.className +' data-courseid='+ opt.courseId +' class="detailBtn">班级详情</div>' +
                '            </div>';
        }else{
            str= '            <div class="oneBox twoBox">' +
                '                <div class="title">'+ opt.courseName +'</div>' +
                '                <div class="box">' +
                '                    <div class="staticBox">' +
                '                        <div class="fl">' +
                '                            <h4>'+ opt.stucount +'人</h4>' +
                '                            <p>学习人数</p>' +
                '                        </div>' +
                '                        <div class="fl">' +
                '                            <h4>'+  opt.problemcount +'</h4>' +
                '                            <p>问题交流提问数</p>' +
                '                        </div>' +
                '                        <div class="fl">' +
                '                            <h4>'+ opt.answercount +'</h4>' +
                '                            <p>问题交流回答数</p>' +
                '                        </div>' +
                '                        <div class="fl">' +
                '                            <h4>'+ Number((opt.sumLong/3600).toFixed(2)) +'h</h4>' +
                '                            <p>实验总时长</p>' +
                '                        </div>' +
                '                        <div class="fl">' +
                '                            <h4>'+ Number((opt.avgLong/3600).toFixed(2)) +'h</h4>' +
                '                            <p>实验平均时长</p>' +
                '                        </div>' +
                '                        <span></span><span></span><span></span><span></span>' +
                '                    </div>' +
                '                    <div class="staticSub">' +
                '                        <div class="fl">' +
                '                            <div>' +
                '                                <div class="fl"><h4>'+ opt.avgPerexam +'</h4><p>平时平均成绩(分)</p></div>' +
                '                                <div class="fl"><h4>'+ opt.avgExam +'</h4><p>考试平均成绩(分)</p></div>' +
                '                                <div class="fl"><h4>'+ opt.avgSource +'</h4><p>总成绩平均成绩(分)</p></div>' +
                '                            </div>' +
                '                        </div>' +
                '                        <div class="fl">' +
                '                            <div>' +
                '                                <div class="fl"><h4 data-text="'+ parseInt(opt.passRate*100) +'" class="circle2"></h4><p>考试及格率</p></div>' +
                '                                <div class="fl"><h4 data-text="'+ parseInt(opt.taskRate*100) +'" class="circle2"></h4><p>作业提交率</p></div>' +
                '                                <div class="fl"><h4 data-text="'+ parseInt(opt.expreRate*100) +'" class="circle2"></h4><p>实验报告提交率</p></div>' +
                '                            </div>' +
                '                        </div>' +
                '                        <span></span>' +
                '                    </div>' +
                '                </div>' +
                '                <div data-classid='+ opt.classId +' data-classname='+  opt.className +' data-courseid='+ opt.courseId +' class="detailBtn">班级详情</div>' +
                '            </div>';
        }
        return str;
    }
    function tableModels(opt,type) {
        var str='';
        if(type == 1){
            str= '            <div class="oneBox twoBox">' +
                '                <div class="title"><i style="color: #448cda;">●</i>'+ opt.className +'</div>' +
                '                <div class="box">' +
                '                    <div class="staticBox">' +
                '                        <div class="fl">' +
                '                            <h4>'+ opt.stucount +'人</h4>' +
                '                            <p>学习人数</p>' +
                '                        </div>' +
                '                        <div class="fl">' +
                '                            <h4>'+  opt.problemcount +'</h4>' +
                '                            <p>问题交流提问数</p>' +
                '                        </div>' +
                '                        <div class="fl">' +
                '                            <h4>'+ opt.answercount +'</h4>' +
                '                            <p>问题交流回答数</p>' +
                '                        </div>' +
                '                        <div class="fl">' +
                '                            <h4>'+ Number((opt.sumLong/3600).toFixed(2)) +'h</h4>' +
                '                            <p>实验总时长</p>' +
                '                        </div>' +
                '                        <div class="fl">' +
                '                            <h4>'+ Number((opt.avgLong/3600).toFixed(2)) +'h</h4>' +
                '                            <p>实验平均时长</p>' +
                '                        </div>' +
                '                        <span></span><span></span><span></span><span></span>' +
                '                    </div>' +
                '                    <div class="staticSub">' +
                '                        <div class="fl">' +
                '                            <div>' +
                '                                <div class="fl"><h4>'+ opt.avgPerexam +'</h4><p>平时平均成绩(分)</p></div>' +
                '                                <div class="fl"><h4>'+ opt.avgExam +'</h4><p>考试平均成绩(分)</p></div>' +
                '                                <div class="fl"><h4>'+ opt.avgSource +'</h4><p>总成绩平均成绩(分)</p></div>' +
                '                            </div>' +
                '                        </div>' +
                '                        <div class="fl">' +
                '                            <div>' +
                '                                <div class="fl"><h4 data-text="'+ parseInt(opt.passRate*100) +'" class="circle1"></h4><p>考试及格率</p></div>' +
                '                                <div class="fl"><h4 data-text="'+ parseInt(opt.taskRate*100) +'" class="circle1"></h4><p>作业提交率</p></div>' +
                '                                <div class="fl"><h4 data-text="'+ parseInt(opt.expreRate*100) +'" class="circle1"></h4><p>实验报告提交率</p></div>' +
                '                            </div>' +
                '                        </div>' +
                '                        <span></span>' +
                '                    </div>' +
                '                </div>' +
                '                <div data-classid='+ opt.classId +' data-classname='+  opt.className +' data-courseid='+ opt.courseId +' class="stuDetailBtn">学生详情</div>' +
                '            </div>';
        }else{
            str= '            <div class="oneBox threeBox">' +
                '                <div class="title"><i style="color: #67dad6;">●</i>'+ opt.className +'</div>' +
                '                <div class="box">' +
                '                    <div class="staticBox">' +
                '                        <div class="fl">' +
                '                            <h4>'+ opt.stucount +'人</h4>' +
                '                            <p>学习人数</p>' +
                '                        </div>' +
                '                        <div class="fl">' +
                '                            <h4>'+  opt.problemcount +'</h4>' +
                '                            <p>问题交流提问数</p>' +
                '                        </div>' +
                '                        <div class="fl">' +
                '                            <h4>'+ opt.answercount +'</h4>' +
                '                            <p>问题交流回答数</p>' +
                '                        </div>' +
                '                        <div class="fl">' +
                '                            <h4>'+ Number((opt.sumLong/3600).toFixed(2)) +'h</h4>' +
                '                            <p>实验总时长</p>' +
                '                        </div>' +
                '                        <div class="fl">' +
                '                            <h4>'+ Number((opt.avgLong/3600).toFixed(2)) +'h</h4>' +
                '                            <p>实验平均时长</p>' +
                '                        </div>' +
                '                        <span></span><span></span><span></span><span></span>' +
                '                    </div>' +
                '                    <div class="staticSub">' +
                '                        <div class="fl">' +
                '                            <div>' +
                '                                <div class="fl"><h4>'+ opt.avgPerexam +'</h4><p>平时平均成绩(分)</p></div>' +
                '                                <div class="fl"><h4>'+ opt.avgExam +'</h4><p>考试平均成绩(分)</p></div>' +
                '                                <div class="fl"><h4>'+ opt.avgSource +'</h4><p>总成绩平均成绩(分)</p></div>' +
                '                            </div>' +
                '                        </div>' +
                '                        <div class="fl">' +
                '                            <div>' +
                '                                <div class="fl"><h4 data-text="'+ parseInt(opt.passRate*100) +'" class="circle3"></h4><p>考试及格率</p></div>' +
                '                                <div class="fl"><h4 data-text="'+ parseInt(opt.taskRate*100) +'" class="circle3"></h4><p>作业提交率</p></div>' +
                '                                <div class="fl"><h4 data-text="'+ parseInt(opt.expreRate*100) +'" class="circle3"></h4><p>实验报告提交率</p></div>' +
                '                            </div>' +
                '                        </div>' +
                '                        <span></span>' +
                '                    </div>' +
                '                </div>' +
                '                <div data-classid='+ opt.classId +' data-classname='+  opt.className +' data-courseid='+ opt.courseId +' class="stuDetailBtn">学生详情</div>' +
                '            </div>';
        }
        return str;
    }
    function downModel(omg,myInfo) {
        var str = '<div id="container">' +
            '<div class="titleBox">' +
            '<h3>' +
            '统计报告' +
            '</h3>';
        if(omg.mark == 1){
            str+='<img src="'+ omg.schoolIconUrl +'"/>';
        }
        str+='</div>' +
            '<div class="subTitleBox">' +
            '个人信息' +
            '</div>' +
            '<table class="perTable" border="0" cellspacing="0" cellpadding="0">' +
            '<tr>' +
            '<td>' +
            '姓名&emsp;&emsp;&emsp;'+ myInfo.userName +'' +
            '</td>' +
            '<td>' +
            '工号&emsp;&emsp;&emsp;'+ myInfo.stuorteaId +'' +
            '</td>' +
            '<td>' +
            '性别&emsp;&emsp;&emsp;'+  myInfo.sexName +'' +
            '</td>' +
            '<td>' +
            '电话&emsp;&emsp;&emsp;'+ myInfo.telephoneNum +'' +
            '</td>' +
            '</tr>' +
            '</table>' +
            '<div class="subTitleBox">' +
            '教学统计分析' +
            '</div>' +
            '' +
            '<table cellpadding="0" cellspacing="0" class="courseStaticBox">' +
            '<tr>' +
            '<td>教学活跃度</td>' +
            '<td>' +
            '<h3>'+ omg.totalMap.stucount +'</h3>' +
            '<p>学习人数</p>' +
            '</td>' +
            '<td>' +
            '<h3>'+ Number((omg.totalMap.avgExpreTime/3600).toFixed(2))  +'h</h3>' +
            '<p>实验平均时长</p>' +
            '</td>' +
            '<td>' +
            '<h3>'+ omg.totalMap.answercount +'</h3>' +
            '<p>问题交流回复数</p>' +
            '</td>' +
            '<td>' +
            '<h3>'+ parseInt(omg.totalMap.checkHomeRate*100) +'%</h3>' +
            '<p>作业批改率</p>' +
            '</td>' +
            '<td>' +
            '<h3>'+ parseInt(omg.totalMap.checkTestRate*100) +'%</h3>' +
            '<p>实验报告批改率</p>' +
            '</td>' +
            '</tr>' +
            '<tr>' +
            '<td>教学周期</td>' +
            '<td>' +
            '<h3>'+ (omg.totalMap.registerTime==null?'--':timeObject.changedateYear(omg.totalMap.registerTime))  +'</h3>' +
            '<p>注册时间</p>' +
            '</td>' +
            '<td>';
        if(omg.totalMap.startTime!=null && omg.totalMap.startTime!="null" && omg.totalMap.startTime!=''){
            str+='<h3>'+ omg.totalMap.startTime+"~~"+omg.totalMap.endTime +'</h3>';
        }else{
            str+='<h3>--</h3>';
        }
        str+= '<p>排课周期</p>' +
            '</td>' +
            '<td>' +
            '<h3>'+ (omg.totalMap.relationCount) +'</h3>' +
            '<p>排课节数</p>' +
            '</td>' +
            '<td>' +
            '<h3>'+ omg.totalMap.teachCourseCount +'</h3>' +
            '<p>教授课程数量</p>' +
            '</td>' +
            '<td>' +
            '<h3>'+ omg.totalMap.stayTime +'h</h3>' +
            '<p>教授课程时长</p>' +
            '</td>' +
            '</tr>' +
            '<tr>' +
            '<td>教学成绩</td>' +
            '<td colspan="2">' +
            '<ol>' +
            '<li>' +
            '<h3>'+ omg.totalMap.avgPerexam +'分</h3>' +
            '<p>平时成绩</p>' +
            '</li>' +
            '<li>' +
            '<h3>'+ omg.totalMap.avgExam +'分</h3>' +
            '<p>考试成绩</p>' +
            '</li>' +
            '<li>' +
            '<h3>'+ omg.totalMap.avgSource +'分</h3>' +
            '<p>总成绩</p>' +
            '</li>' +
            '</ol>' +
            '</td>' +
            '<td>' +
            '教学成果' +
            '</td>' +
            '<td colspan="2">' +
            '<ol>' +
            '<li>' +
            '<h3>'+ parseInt( omg.totalMap.passTotalRate*100) +'%</h3>' +
            '<p>考试及格率</p>' +
            '</li>' +
            '<li>' +
            '<h3>'+ parseInt( omg.totalMap.homeRate*100) +'%</h3>' +
            '<p>作业提交率</p>' +
            '</li>' +
            '<li>' +
            '<h3>'+ parseInt( omg.totalMap.testRate*100) +'%</h3>' +
            '<p>实验报告提交率</p>' +
            '</li>' +
            '</ol>' +
            '</td>' +
            '' +
            '</tr>' +
            '</table>';
        var str1 = '';
        if(omg.finalList.length != 0) {
            str+= '<div class="subTitleBox">' +
                '课程统计分析' +
                '</div>';
            $.map(omg.finalList, function (opt) {
                str1+='<div class="courseNameBox">' +
                    '<i>▪</i>'+  opt.courseName +'' +
                    '</div>' +
                    '<table cellpadding="0" cellspacing="0" class="courseStaticBoxes borderRight">' +
                    '<tr>' +
                    '<td>' +
                    '<h3>'+ opt.stucount +'人</h3>' +
                    '<p>学习人数</p>' +
                    '</td>' +
                    '<td>' +
                    '<h3>'+ Number((opt.avgLong/3600).toFixed(2)) +'h</h3>' +
                    '<p>实验平均时长</p>' +
                    '</td>' +
                    '<td>' +
                    '<h3>'+ opt.answercount +'</h3>' +
                    '<p>问题交流回答数</p>' +
                    '</td>' +
                    '<td>' +
                    '<h3>'+ opt.problemcount +'</h3>' +
                    '<p>问题交流提问数</p>' +
                    '</td>' +
                    '<td>' +
                    '<h3>'+ Number((opt.sumLong/3600).toFixed(2)) +'h</h3>' +
                    '<p>实验总时长</p>' +
                    '</td>' +
                    '</tr>' +
                    '</table>' +
                    '<table cellpadding="0" cellspacing="0" class="courseStaticBoxes subCourseStaticBoxes">' +
                    '<tr>' +
                    '<td>' +
                    '<h3>'+ opt.avgPerexam +'分</h3>' +
                    '<p>平时成绩</p>' +
                    '</td>' +
                    '<td>' +
                    '<h3>'+ opt.avgExam +'分</h3>' +
                    '<p>考试成绩</p>' +
                    '</td>' +
                    '<td>' +
                    '<h3>'+ opt.avgSource +'分</h3>' +
                    '<p>总成绩</p>' +
                    '</td>' +
                    '<td>' +
                    '<h3>'+ parseInt(opt.passRate*100) +'%</h3>' +
                    '<p>考试及格率</p>' +
                    '</td>' +
                    '<td>' +
                    '<h3>'+ parseInt(opt.taskRate*100) +'%</h3>' +
                    '<p>作业提交率</p>' +
                    '</td>' +
                    '<td>' +
                    '<h3>'+ parseInt(opt.expreRate*100) +'%</h3>' +
                    '<p>实验报告提交率</p>' +
                    '</td>' +
                    '</tr>' +
                    '</table>';
            });
        }
        str1+='</div>';
        return str + str1;
    }
    var classMana = {
        info:'',
        init: function() {
            this.bindEvent();
        },
        bindEvent: function() {
            var self = this;
            var parameter = {"selecetRoleId":2,"stuorteaId":result.stuorteaId};
            $.ajax({
                type: "post",
                url: "getMemberDetailById",
                async: true,
                data: {
                    "jsonStr": JSON.stringify(parameter)
                },
                success: function (data, status, xhr) {
                    data = JSON.parse(data);
                    self.info = data.memberList[0];
                }
            });
            var jsons = JSON.stringify({
                "pageNow": 0,
                "pageSize": 5,
                "classEndMark":3
            });
            $.ajax({
                type: "post",
                url: "getCouStatisticsByTeaId",
                data: {
                    "jsonStr": jsons
                },
                async: true,
                success: function (msg) {
                    loading1.hide();
                    msg = JSON.parse(msg);
                    if (msg.result == "success") {
                        var a = msg.activitySource!=undefined?msg.activitySource:'';
                        var b = msg.cycleSource!=undefined?msg.cycleSource:'';
                        var c = msg.teachSource!=undefined?msg.teachSource:'';
                        var d = msg.achievementsSource!=undefined?msg.achievementsSource:'';
                        var e = parseInt(Math.random()*100);
                        var f = parseInt(Math.random()*100);
                        if(msg.couStatisticsMap.finalList!=null){
                            var str = report(msg.couStatisticsMap,a,b,c,d,e,f);

                            $("#contentBox").html(str);
                            $("#contentBox").show();
                            $(".mb").show();

                            // 教学材料
                            $(".teaBtn").hover(function(event) {
                                $(".bubble").hide();
                                $(this).children(".bubble").show();
                                var courseId=$(this).attr("data-courseid");
                                var getDownloadMarkParameters={
                                    "courseId":parseInt(courseId)
                                };
                                var myClick=$(this);

                                $.ajax({
                                    type: "post",
                                    url: "getDownloadMark",
                                    async: true,
                                    data: {
                                        "jsonStr": JSON.stringify(getDownloadMarkParameters)
                                    },

                                    success: function(msg) {
                                        var courseIds=courseId;
                                        var msgNew = JSON.parse(msg);

                                        if(msgNew.result == "success") {
                                            for(var key in msgNew.cantDownList){
                                                myClick.children(".bubble").children(".num"+msgNew.cantDownList[key]).removeClass("have").css({"color":"#999","cursor":"not-allowed"});
                                            }
                                            $(".teaBtn .bubble p").off("click").click(function(event){
                                                event.stopPropagation();
                                            });
                                            $(".teaBtn .bubble .have").off('click').click(function(){

                                                var downloadCourseFileParameters={
                                                    "courseId":parseInt(courseIds),
                                                    "downloadType":parseInt($(this).attr("num"))
                                                };
                                                loading1.show();
                                                $.ajax({
                                                    type: "post",
                                                    url: "downloadCourseFile",
                                                    async: true,
                                                    data: {
                                                        "jsonStr": JSON.stringify(downloadCourseFileParameters)
                                                    },
                                                    success: function(msg) {
                                                        loading1.hide();
                                                        var msgNew = JSON.parse(msg);
                                                        if(msgNew.result == "success") {
                                                            if(msgNew.wordMark  == 0){
                                                                window.location.href=msgNew.url;
                                                            }else{
                                                                Alert1.content = "暂无资源";
                                                                Alert1.init();
                                                                Alert1.show();
                                                            }
                                                        } else {
                                                            Alert1.content = msgNew.failMsg;
                                                            Alert1.init();
                                                            Alert1.show();

                                                        }

                                                    },
                                                    error: function(data, status, xhr) {
                                                        var json = JSON.stringify({
                                                            "pageName": "error"
                                                        });
                                                        window.location.href = "skipPage?jsonStr=" + json;

                                                    }
                                                });
                                                return false;
                                            });



                                        } else {
                                            Alert1.content = msgNew.failMsg;
                                            Alert1.init();
                                            Alert1.show();


                                        }

                                    },
                                    error: function(data, status, xhr) {
                                        var json = JSON.stringify({
                                            "pageName": "error"
                                        });
                                        window.location.href = "skipPage?jsonStr=" + json;

                                    }
                                });
                                event.stopPropagation();
                            },function () {
                                $(".bubble").hide();
                            });
                            var circleList = document.getElementsByClassName("circle");
                            for(var i = 0;i < $(".circle").length;i++){
                                self.getCircle(circleList[i],$(".circle").eq(i).attr("data-text"));
                            }
                            var circleLists = document.getElementsByClassName("circles");
                            for(var i = 0;i < $(".circles").length;i++){
                                self.getCircles(circleLists[i],$(".circles").eq(i).attr("data-text"));
                            }
                            var circleListsm = document.getElementsByClassName("circlem");
                            for(var i = 0;i < $(".circlem").length;i++){
                                self.getCirclesm(circleListsm[i],$(".circlem").eq(i).attr("data-text"));
                            }
                            var count = 0;
                            $("#showDetail").off("click").click(function () {
                                if(count%2==0){
                                    $(".newBox").show();
                                    $(this).css({"background":"#fff url(../../images/ico_reportDetail2.png) no-repeat right 12px center","background-size":"11px"});

                                }else{
                                    $(".newBox").hide();
                                    $(this).css({"background":"#fff url(../../images/ico_reportDetail.png) no-repeat right 12px center","background-size":"11px"});
                                }
                                var circleListsm = document.getElementsByClassName("circlem");
                                for(var i = 0;i < $(".circlem").length;i++){
                                    self.getCirclesm(circleListsm[i],$(".circlem").eq(i).attr("data-text"));
                                }
                                count++;
                            });
                            // self.energyEvent(a,b,c,d,e,f);
                            self.skipEvent();
                            $(".downloadBtn").off("click").click(function () {
                                var string = downModel(msg.couStatisticsMap,self.info);
                                var cssStr = '*{margin:0;padding:0;color:#333;font-family:"microsoft yahei";}i{font-style:normal;}ul,ol{list-style:none;}.clear{clear:both;}.fl{float:left;}.fr{float:right;}#container{padding:46px 50px 0;margin:0 auto;}.titleBox{height:118px;position:relative;}.titleBox h3{height:100%;width:100%;line-height:162px;text-align:center;font-size:20px;font-weight:bolder;}.titleBox img{position:absolute;right:10px;top:0;}.subTitleBox{height:12px;border-left:4px solid #58a8e8;padding-left:10px;font-size:12px;line-height:12px;font-weight:bolder;margin-bottom:16px;}.perTable{width:100%;table-layout:fixed;height:42px;text-align:center;line-height:42px;margin-bottom:15px;font-size:10px;}.perTable td{border-top:1px solid #6a6a6a;border-bottom:3px solid #6a6a6a;border-right:1px solid #6a6a6a;}.perTable td:last-child{border-right:none;}.courseNameBox{font-size:10px;margin-bottom:10px;}.courseNameBox i{margin-right:6px;font-size:10px;}.courseStaticBox{height:138px;width:100%;border-top:1px solid #6a6a6a;border-bottom:3px solid #6a6a6a;margin-bottom:24px;}.courseStaticBox tr{height:46px;}.courseStaticBox tr td{height:46px;border-bottom:1px solid #6a6a6a;text-align:center;}.courseStaticBox tr td:nth-of-type(1){border-right:1px solid #6a6a6a;font-size:10px;font-weight:bolder;}.courseStaticBox tr:nth-of-type(3) td{border-bottom:none;}.courseStaticBox tr:nth-of-type(3) td:nth-of-type(3){border-right:1px solid #6a6a6a;border-left:1px solid #6a6a6a;font-size:10px;font-weight:bolder;}.courseStaticBox tr td h3{font-size:16px;color:#6da5eb;font-weight:normal;}.courseStaticBox tr td p{font-size:8px;}.courseStaticBox ol{height:100%;}.courseStaticBox ol li{float:left;text-align:center;width:33.333333333333333%;padding:5px 0;}.courseStaticBoxes{height:45px;width:100%;border-top:1px solid #6a6a6a;text-align:center;}.subCourseStaticBoxes{border-top:1px solid #6a6a6a;border-bottom:3px solid #6a6a6a;margin-bottom:24px;}.courseStaticBoxes tr{height:45px;}.courseStaticBoxes h3{font-size:16px;color:#6da5eb;font-weight:normal;}.courseStaticBoxes p{font-size:8px;}.borderRight td{border-right:1px solid #6a6a6a;width:20%;}.borderRight td:nth-last-child(1){border-right:none;}.subCourseStaticBoxes td{width:16.6666666666666666666%;}.subCourseStaticBoxes td:nth-of-type(3){border-right:1px solid #6a6a6a;}';
                                var jsonStr = JSON.stringify({
                                    "reportHtml": string,
                                    "mark": 2,
                                    "cssStr":cssStr
                                });
                                $.ajax({
                                    type: "post",
                                    url: "saveReportHtmlByStuId",
                                    data: {
                                        "jsonStr": jsonStr
                                    },
                                    async: true,
                                    success: function (msg) {
                                        loading1.hide();
                                        msg = JSON.parse(msg);
                                        if (msg.result == "success") {
                                            $("body").append("<a href='"+ msg.path+msg.reportFileName +"' download  id='downText'>");
                                            document.getElementById("downText").click();
                                            $("#downText").remove();
                                        }else{
                                            Alert1.content = msg.failMsg;
                                            Alert1.init();
                                            Alert1.show();
                                        }
                                    }
                                });
                            });
                        }else{
                            $("#contentBox").html('<div><img style="margin: 180px auto" src="pc/images/bg_courseSt.png" alt=""></div>');
                            $("#contentBox").show();
                        }
                    }else{
                        if(msg.failMsg == "暂无权限"){
                            parent.location.reload(true);
                        }else{
                            Alert1.content = msg.failMsg;
                            Alert1.init();
                            Alert1.show();
                        }
                    }
                }
            });
        },
        getCircless:function (id,value) {
            var myChart = echarts.init(id);
            var option = {
                tooltip: {
                    trigger: 'item',
                    formatter: "{a} <br/>{b}: {c} ({d}%)"
                },
                series: [
                    {
                        type:'pie',
                        radius: [35, 45],
                        color:['#67dad6','#eeeeee'],
                        avoidLabelOverlap: false,
                        label: {
                            normal: {
                                show: true,
                                label : {
                                    formatter : function (params){
                                        return 100 - params.value + '%'
                                    }
                                },
                                fontSize:26,
                                fontWeight:'normal',
                                position: 'center'
                            },
                            emphasis: {
                                show: true,
                                textStyle: {
                                    fontSize: 26
                                }
                            }
                        },
                        labelLine: {
                            normal: {
                                show: true
                            }
                        },
                        data:[
                            {value:value, name:value+"%"},
                            {value:100-value,name:''}
                        ]
                    }
                ]
            };
            myChart.setOption(option);
        },
        getCirclesm:function (id,value) {
            var myChart = echarts.init(id);
            var option = {
                tooltip: {
                    trigger: 'item',
                    formatter: "{a} <br/>{b}: {c} ({d}%)"
                },
                series: [
                    {
                        type:'pie',
                        radius: [30, 40],
                        color:['#448cda','#eeeeee'],
                        avoidLabelOverlap: false,
                        label: {
                            normal: {
                                show: true,
                                label : {
                                    formatter : function (params){
                                        return 100 - params.value + '%'
                                    }
                                },
                                fontSize:22,
                                fontWeight:'normal',
                                position: 'center'
                            },
                            emphasis: {
                                show: true,
                                textStyle: {
                                    fontSize: 22,
                                    color:['#448cda']
                                }
                            }
                        },
                        labelLine: {
                            normal: {
                                show: true
                            }
                        },
                        data:[
                            {value:value, name:value+"%"},
                            {value:100-value,name:''}
                        ]
                    }
                ]
            };
            myChart.setOption(option);
        },
        getCircles:function (id,value) {
            var myChart = echarts.init(id);
            var option = {
                tooltip: {
                    trigger: 'item',
                    formatter: "{a} <br/>{b}: {c} ({d}%)"
                },
                series: [
                    {
                        type:'pie',
                        radius: [35, 45],
                        color:['#448cda','#eeeeee'],
                        avoidLabelOverlap: false,
                        label: {
                            normal: {
                                show: true,
                                label : {
                                    formatter : function (params){
                                        return 100 - params.value + '%'
                                    }
                                },
                                fontSize:26,
                                fontWeight:'normal',
                                position: 'center'
                            },
                            emphasis: {
                                show: true,
                                textStyle: {
                                    fontSize: 26
                                }
                            }
                        },
                        labelLine: {
                            normal: {
                                show: true
                            }
                        },
                        data:[
                            {value:value, name:value+"%"},
                            {value:100-value,name:''}
                        ]
                    }
                ]
            };
            myChart.setOption(option);
        },
        getCircle:function (id,value) {
            var myChart = echarts.init(id);
            var option = {
                tooltip: {
                    trigger: 'item',
                    formatter: "{a} <br/>{b}: {c} ({d}%)"
                },
                series: [
                    {
                        type:'pie',
                        radius: [35, 45],
                        color:['#fff','transparent'],
                        avoidLabelOverlap: false,
                        label: {
                            normal: {
                                show: true,
                                label : {
                                    formatter : function (params){
                                        return 100 - params.value + '%'
                                    }
                                },
                                fontSize:26,
                                fontWeight:'normal',
                                position: 'center'
                            },
                            emphasis: {
                                show: true,
                                textStyle: {
                                    fontSize: 26
                                }
                            }
                        },
                        labelLine: {
                            normal: {
                                show: true
                            }
                        },
                        data:[
                            {value:value, name:value+"%"},
                            {value:100-value,name:''}
                        ]
                    }
                ]
            };
            myChart.setOption(option);
        },
        energyEvent:function(a,b,c,d,e,f){
            var myChart = echarts.init(document.getElementById('energy'));

            var option = {

                tooltip : {
                    trigger: 'axis'
                },
                color:['#4391e8'],
                calculable : true,
                xAxis : [
                    {
                        type: 'category',
                        boundaryGap: false,
                        data: ['教学活跃度', '教学周期', '教学成绩', '教学成果'],
                        splitLine: {show: false},
                        axisLine: {
                            lineStyle: {
                                color: '#999999',
                                width: 1//这里是为了突出显示加上的
                            }

                        }
                    }
                ],
                yAxis : [
                    {
                        type : 'value',
                        label:{            //饼图图形上的文本标签
                            normal:{
                                show:true,
                                textStyle : {
                                    fontWeight : 300 ,
                                    fontSize : 16    //文字的字体大小
                                }


                            }
                        },
                        axisLine: {
                            lineStyle: {
                                color: '#999999',
                                width: 1//这里是为了突出显示加上的,
                            }

                        },
                        splitLine:{show: false}
                    }
                ],
                axis:{
                    axisLine:false
                },

                series : [
                    {
                        name:'教师统计',
                        type:'line',
                        smooth:true,
                        data:[a,b,c,d],
                        itemStyle:{
                            normal: {
                                borderColor: '#4391e8',
                                borderWidth: 3,
                                areaStyle: {
                                    color: {
                                        type: 'linear',
                                        x: 0,
                                        y: 0,
                                        x2: 0,
                                        y2: 1,
                                        colorStops: [{
                                            offset: 1, color: 'rgba(250, 252, 254,1)' // 100% 处的颜色
                                        }, {
                                            offset: 0, color: 'rgba(146, 190, 241, 1)' // 0% 处的颜色
                                        }],
                                        globalCoord: false // 缺省为 false
                                    }
                                }
                            }
                        }
                    }
                ]
            };
            myChart.setOption(option);
        },
        skipEvent:function(){
            var self = this;
            var courseid = 0;
            $(".detailBtn").off("click").click(function(){
                $(".wrap").css("overflow","hidden");
                var jsonStr = JSON.stringify({
                    "courseId":Number($(this).attr("data-courseid")),
                    "classEndMark":3
                });
                self.getClassData(jsonStr);
                courseid = $(this).attr("data-courseid");
                $(".masking,.fixBox").show();
                $(".dataBox").append(tableModel(JSON.parse($(this).attr("data-info")),$(this).attr("type")));
                $(".dataBox").append(selectModel+"<div class='classBox'></div>");
                $(".dataBox .detailBtn").eq(0).remove();
                $(".searchBtn").off("click").on("click", function() {
                    var jsonStr = JSON.stringify({
                        "courseId":Number(courseid),
                        "classEndMark":Number($("#courseType").val())
                    });
                    self.getClassData(jsonStr,Number($("#courseType").val()));
                });

            });
            $(".exitDataBtn").off("click").click(function () {
                $(".wrap").css("overflow","");
                $(".dataBox").empty();
                $(".masking,.fixBox").hide();
            });

        },
        getClassData:function (jsons,classEndMark) {
            var json =jsons;
            var self = this;
            loading1.show();
            $.ajax({
                url:"getCouStatisticsByTeaIdDetail",
                method:"post",
                data:{
                    "jsonStr":json
                },
                success:function (msg) {
                    loading1.hide();
                    msg = JSON.parse(msg);
                    $(".classBox").html("");
                    if(msg.couStatisticsDetailMap.finalList.length != 0) {
                        //列表
                        var tabel = "";
                        $.map(msg.couStatisticsDetailMap.finalList, function(opt) {
                            tabel += tableModels(opt,opt.classEndMark);
                        });
                        $(".classBox").html(tabel);
                        var circleList = document.getElementsByClassName("circle1");
                        for(var i = 0;i < $(".circle1").length;i++){
                            self.getCircle(circleList[i],$(".circle1").eq(i).attr("data-text"));
                        }
                        var circleLists = document.getElementsByClassName("circle2");
                        for(var i = 0;i < $(".circle2").length;i++){
                            self.getCircles(circleLists[i],$(".circle2").eq(i).attr("data-text"));
                        }
                        var circleListss = document.getElementsByClassName("circle3");
                        for(var i = 0;i < $(".circle3").length;i++){
                            self.getCircless(circleListss[i],$(".circle3").eq(i).attr("data-text"));
                        }
                    }
                    $(".dataBox .stuDetailBtn").off("click").click(function(){
                        var json = JSON.stringify({
                            "pageName":"stuStatistics",
                            "paramData":{
                                "classId":Number($(this).attr("data-classid")),
                                "courseId":Number($(this).attr("data-courseid"))
                            }
                        });
                        // $(".mainNav",parent.document).children("div:nth-of-type(2)").attr("data-num","1").children("a").addClass("leftClick").end().siblings("div").attr("data-num","0").children("a").removeClass("leftClick");
                        window.location.href = "skipPage?jsonStr="+json;

                    });
                }
            });
        }
    };
    classMana.init();
});